package com.yuanyi.controller;

import com.yuanyi.dao.EquipmentDao;
import com.yuanyi.entity.Equipment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BaoXiuController {
    @Autowired
    EquipmentDao equipmentDao;

    public static void main(String[] args){
        System.out.println("张政已经抢单！552");
    }

    @GetMapping("/baoxiu")
    public Equipment baoxiu(String eno){


        return equipmentDao.findByENo(eno);
    }
}
